package com.interview.seckilladvance.service;

import com.interview.seckilladvance.error.BusinessException;
import com.interview.seckilladvance.service.model.UserModel;

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/5 15:01
 */
public interface UserService {
    //通过用户id获取用户的方法
    UserModel getUserById(Integer id);

    //通过缓存获取用户对象
    UserModel getUserByIdInCache(Integer id);

    void register(UserModel userModel) throws BusinessException;

    /*
     * telphone:用户注册手机
     * password:用户加密后的密码
     * */
    UserModel validateLogin(String telphone,String encrptPassword) throws BusinessException;
}
